import Vue from 'vue'
import VueRouter from 'vue-router'

import { constantRoutes } from '@/router/routes'

Vue.use(VueRouter)

const router = new VueRouter({
  // mode: 'history', // require service support
  routes: constantRoutes
})

export default router
